﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using Extensions;

public partial class Controls_ProductListHorizontal : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public string Title
    {
        get
        {
            return TitleLabel.Text;
        }
        set
        {
            TitleLabel.Text = value;
        }
    }
    public int ItemsInBox
    {
        set
        {
            DataPager.PageSize = value;
        }
    }
    public string DataSourceID
    {
        set
        {
            ProductsListView.DataSourceID = value;
        }
    }
    protected string FormatPrice(object value)
    {
        return Convert.ToDecimal(value).ToMoneyString();
    }
}
